/*
 * @Author: RYPY
 * @Date: 2021-03-24 09:15:13
 * @LastEditors: RYPY
 * @LastEditTime: 2021-03-24 09:21:24
 */
const express=require("express");
const path=require("path");
const app=express();

//托管静态资源
app.use(express.static(path.join(__dirname,"public")));
//设置post请求中间件
app.use(express.urlencoded({extended:true}));
//设置项目的JSON数据交互格式
app.use(express.json());


//引入子路由
app.use("/",require("./routers/userRouter"));

app.listen(1234);
console.log("kkk22");